<script lang="ts" setup>
import { getListByConditions, urls } from '@/index';
import type { AsmePersonInfo } from '@/index.d';
import { useRequest } from 'vue-request';

const getAsmePersonInfoListPromise = () =>
  getListByConditions<AsmePersonInfo>(urls.asmePersonInfo, {});

const { data } = useRequest(getAsmePersonInfoListPromise);
</script>
<template>
  <el-option
    v-for="item in data"
    :key="item.id"
    :label="((item.workNo as string) + ' - ' + item.name) as string"
    :value="item.username as string"
    v-bind="$attrs"
  />
</template>
